/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-02-17
*/
package com.rzico.basics.mapper;

import com.rzico.base.BaseMapper;
import com.rzico.basics.entity.Member;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
/**
 * <pre>
 *   会员映射类
 * </pre>
 *
 * @author Rzico Boot
 * @version 1.0
 */
@Mapper
public interface MemberMapper extends BaseMapper<Member, String> {

   List<Member> selectList(Map<String, Object> params);
   public int selectRowCount(Map<String, Object> params);

   List<Map<String,Object>> summary(Map<String, Object> params);
   Double summaryRebate(Map<String, Object> params);
   int summaryOrder(Map<String, Object> params);

   Integer addBalance(Map<String, Object> params);
   Integer decBalance(Map<String, Object> params);

   Integer addFreezeBalance(Map<String, Object> params);
   Integer decFreezeBalance(Map<String, Object> params);

   Integer clearFreezeBalance();

   Integer addPoint(Map<String, Object> params);
   Integer decPoint(Map<String, Object> params);

   Integer addFreezePoint(Map<String, Object> params);
   Integer decFreezePoint(Map<String, Object> params);

   Integer addMatchPoint(Map<String, Object> params);
   Integer decMatchPoint(Map<String, Object> params);

   String getMaxCode(Map<String,Object> params);

}
